<layout name='Layout/layout_page' />
	<ol class="breadcrumb">
		<li><a href="<{:U('Member/index')}>">会员管理</a></li>
      	<li class="active">列表</li>
    </ol>
	
	<form class="form-inline" method="get" action="index.php">
  		<div class="form-group">
    		<label>手机号码</label>
    		<input type="text" class="form-control input-sm" name="username">
    		<label>姓名</label>
    		<input type="text" class="form-control input-sm" name="name">
  		</div>
		<button type="submit" class="btn btn-default btn-sm">搜索</button>
		<input type="hidden" name="g" value="Admin" />
		<input type="hidden" name="m" value="Member" />
		<input type="hidden" name="a" value="index" />
	</form>

	<p></p>
	
	<form id="ajaxForm" method="post" action="<{:U('Member/del')}>" name="form1" class="form-horizontal form-validata">
	<TABLE class="table table-striped table-bordered table-hover">
	  <THEAD>
		<tr>
		  <TH><input class="checkall" name="checkall" type="checkbox" id="checkall" onClick="CheckAll(this.form)"/> 全选</TH>
		  <TH>会员编号</TH>
		  <TH>头像</TH>
		  <TH>手机号码</TH>
		  <TH>真实姓名</TH>
		  <TH>推荐人</TH>	
		  <TH>可提金额</TH>	
		  <TH>状态</TH>	  
		  <TH>注册日期</TH>		  
		  <TH>操作</TH>
		</tr>
	  </THEAD>
	  <TBODY>             
			<volist name="list" id="vo">
			<tr>
			  <td><input type="checkbox" name="selectedids[]" value="<{$vo.userid}>" id="<{$vo.userid}>"></td>
			  <td><{$vo.userid}></td>
			  <td><img src="<{$vo.face}>" style="width:50px; height:50px"></td>
			  <td><{$vo.username}></td>			  
              <td><{$vo.name}></td>
              <td><{$vo.father}></td>              
              <td><{$vo.money}></td>              
              <td><eq name="vo.iswork" value="1"><font color="blue">在职</font><else/>离职</eq></td>
              <td><{$vo.regDate|date='Y-m-d H:i:s',###}></td>
			  <td>
			  	<a href="<{:U('member/edit' , array('userid'=>$vo['userid']))}>" class="btn btn-default btn-sm">查看</a>
			  	<a href="<{:U('Record/index' , array('userid'=>$vo['userid']))}>" class="btn btn-default btn-sm">工作记录</a>
			  	<a href="<{:U('Myuser/index' , array('userid'=>$vo['userid']))}>" class="btn btn-default btn-sm">发展会员</a>
			  	<a href="<{:U('Yongjin/index' , array('toID'=>$vo['userid']))}>" class="btn btn-default btn-sm">佣金</a>
			  	<a href="<{:U('Tixian/index' , array('userid'=>$vo['userid']))}>" class="btn btn-default btn-sm">提现申请</a>
			  	<a href="<{:U('Message/single' , array('userid'=>$vo['userid']))}>" class="btn btn-default btn-sm">发消息</a>
			  </td>
			</tr>
			</volist>
	  </TBODY>
	</TABLE>

	<div class="row">
		<div class="col-md-6">
			<button class="btn btn-info btn-sm" onClick="if(!confirm('删除后不可恢复！确定吗？'))return false;"><i class="glyphicon glyphicon-trash"></i> 删除选中信息</button>
		</div>
		
		<div class="col-md-6">
			<div class="page">
				<nav>
  					<ul class="pagination"><{$page}></ul>
  				</nav>
  			</div>
		</div>
	</div>
	</form>

<input type="hidden" id="menu_action" value="user" />